/**
 * 郭楠project
 * com.gn.service
 * EmpServiceImpl.java
 * 创建人:TonyGuo 
 * 时间：2017年3月25日-下午9:25:04 
 * 2017Tm公司-版权所有
 */
package com.gn.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.gn.dao.EmpDAO;
import com.gn.entity.TestEmp;

/**
 * 
 * EmpServiceImpl
 * 创建人:TonyGuo
 * 时间：2017年3月25日-下午9:25:04 
 * @version 1.0.0
 * 
 */
@Service
public class EmpServiceImpl implements EmpService{
	@Resource
	EmpDAO emoDao;

	/* (non-Javadoc)
	 * @see com.gn.service.EmpService#addEmp(com.gn.entity.TestEmp)
	 */
	@Override
	public void addEmp(TestEmp emp) {
		// TODO Auto-generated method stub
		emoDao.addEmp(emp);
	}

	/* (non-Javadoc)
	 * @see com.gn.service.EmpService#update(com.gn.entity.TestEmp)
	 */
	@Override
	public void update(TestEmp emp) {
		// TODO Auto-generated method stub
		emoDao.update(emp);
	}

	/* (non-Javadoc)
	 * @see com.gn.service.EmpService#findEmp(java.lang.String)
	 */
	@Override
	public TestEmp findEmp(String id) {
		// TODO Auto-generated method stub
		return emoDao.findEmp(id);
	}

	/* (non-Javadoc)
	 * @see com.gn.service.EmpService#del(java.lang.String)
	 */
	@Override
	public void del(String id) {
		// TODO Auto-generated method stub
		emoDao.del(id);
	}

	/* (non-Javadoc)
	 * @see com.gn.service.EmpService#findAll()
	 */
	@Override
	public List<TestEmp> findAll() {
		// TODO Auto-generated method stub
		return emoDao.findAll();
	}

	/* (non-Javadoc)
	 * @see com.gn.service.EmpService#findNodel()
	 */
	@Override
	public List<TestEmp> findNodel() {
		// TODO Auto-generated method stub
		return emoDao.findNodel();
	}

}
